{include file="public/header" /}
<style type="text/css">.gray-bg {
    background: #fff;
}

.wrapper {
    padding: 0px;
}</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">

                    <div class="form-group">
                        <label class="col-sm-2 control-label">是否系统：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" name="is_sys" value="1" {if !isset($data.is_sys) or $data.is_sys eq 1} disabled="disabled" checked="checked" {/if} /> 是 </label>
                                <label>
                                    <input type="radio" name="is_sys" value="0" {if !isset($data.is_sys) or $data.is_sys eq 0}checked="checked" {else}disabled="disabled"{/if} /> 否 </label>

                            </div>
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 系统协议不能类型，请谨慎填写</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">页面标题：</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" id="page_title" name="page_title"
                                   value="{$data.page_title|default=''}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容标题：</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" id="title" name="title"
                                   value="{$data.title|default=''}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容：</label>
                        <div class="col-sm-9">
                            <textarea id="content" class="form-control editor" name="content"  cols="30" rows="10">{$data.content|default=''}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序：</label>
                        <div class="col-sm-9">
                            <input class="form-control" type="text" id="sort" name="sort"
                                   value="{$data.sort|default='1'}"/>
                        </div>
                    </div>


                </div>
            </div>
            <input type="hidden" name="id" value="{$data.id|default=0}"/>
        </form>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript" src="__STYLE__/admin/js/area.js?ver=20200522"></script>
{load href="__STYLE__/admin/plugins/iCheck/icheck.min.js"}
{load href="__STYLE__/admin/plugins/iCheck/custom.css"}
<script src="__STYLE__/trumbowyg/trumbowyg.js"></script>
<script src="__STYLE__/trumbowyg/langs/fr.js"></script>
<script src="__STYLE__/trumbowyg/plugins/upload/trumbowyg.upload.js"></script>
<link rel="stylesheet" href="__STYLE__/trumbowyg/design/css/trumbowyg.css">
<script src="__STYLE__/trumbowyg/plugins/base64/trumbowyg.base64.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        });
    });

    $("#upload").click(function () {
        layer.open({
            type: 2,
            title: '上传图片',
            shadeClose: true,
            shade: 0.2,
            area: ['70%', '60%'],
            skin: 'shangchuantup',
            content: "{:url('common/upload', ['type' => 'avatar'])}",
            shift: -1,
            scrollbar: false,
            moveType: 1,
            moveOut: true
        });
    });
    $('#content').trumbowyg({

        lang: 'en',

        closable: false,

        mobile: true,

        fixedBtnPane: true,

        fixedFullWidth: true,

        semantic: true,

        resetCss: true,

        autoAjustHeight: true,

        autogrow: true

    });
</script>
{include file="public/bottom" /}